﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyORC
{
    class TxtHelper
    {
        public void txtWrite(string txtFulPath, string WriteContent)
        {
            if (!File.Exists(txtFulPath))
            {
                FileStream fs = new FileStream(txtFulPath, FileMode.OpenOrCreate);
                fs.Close();
            }
            using (StreamWriter sw = new StreamWriter(txtFulPath, append: true))
            {
                sw.Write(WriteContent);
                sw.Close();
            }
        }
    }
}
